<?php $this->context->layout = 'form';?>
<?= \common\widgets\Asset::widget(['type'=>['dragula']])?>

<form class="form-horizontal m" id="form-edit">
    <?= \common\widgets\FormInput::widget(['name'=>'input','extend'=>['name'=>'id','type'=>'hidden','info'=>$info]])?>
    <?= \common\widgets\FormInput::widget(['name' => 'forminput|退款金额', 'extend' => ['name' => 'amount','type'=>'number', 'required' => 1,'info'=>$info]]) ?>
    <?= \common\widgets\FormInput::widget(['name'=>'formradio|售后状态','extend'=>['name'=>'status','required'=>1,'data'=>$status,'tips'=>'审核通过，退款金额将原路返回，退款金额不能大于订单金额']])?>
    <div class="form-group">
        <label class="col-sm-3 control-label">审核说明：</label>
        <div class="col-sm-9">
            <?= \common\widgets\FormInput::widget(['name'=>'textarea','extend'=>['name'=>'review_remark']])?>
            <div class="summernote" data-place="请输入内容"></div>
        </div>
    </div>
</form>
<?php $this->beginBlock('script'); ?>
<script>
    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save("<?=\yii\helpers\Url::to(['refund-review'])?>", $('#form-edit').serialize());
        }
    }
</script>
<?php $this->endBlock(); ?>
